package com.xw.demo.mybatis;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.oas.annotations.EnableOpenApi;

/**
 * @author xiongwei_vendor
 * @date 2021/12/30 15:42
 */
@SpringBootApplication
@ComponentScan(value = "com.xw.demo.mybatis")
@MapperScan("com.xw.demo.mybatis.mapper")
@EnableOpenApi
@Slf4j
public class MybatisApplication {

    public static void main(String[] args) {
        SpringApplication.run(MybatisApplication.class, args);
        log.info("swagger url : {}","http://localhost:18100/swagger-ui/index.html");
    }

}
